<?php

namespace App\Model\Stat;

use App\Model\UserProfile;
use Illuminate\Database\Eloquent\Model;

/**
 *  邀请信息
 */
class StatInviteInfo extends Model
{
    protected $connection = 'stat';
    protected $table = 'stat_invite_info';
    protected $fillable = ['invite_id', 'invited_num', 'recharge_rmb'];

    public function userProfile()
    {
        return $this->belongsTo(UserProfile::class, 'invite_id', 'user_id');
    }
}
